package cn.uniquesoft.service.impl;

import cn.uniquesoft.mapper.ConnectMapper;
import cn.uniquesoft.service.IConnectService;
import cn.uniquesoft.service.base.BaseServiceImpl;
import cn.uniquesoft.vo.ConnectVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConnectServiceImpl extends BaseServiceImpl<ConnectVO> implements IConnectService {
	private ConnectMapper connectMapper;
	public ConnectServiceImpl (ConnectMapper connectMapper){
		super();
		this.baseMapper=connectMapper;
		this.connectMapper=connectMapper;
	}

	@Override
	public List<ConnectVO> findByTwoId(ConnectVO item) {
		return this.connectMapper.findByTwoId(item);
	}

	@Override
	public List<ConnectVO> getConnectList(ConnectVO item) {
		return this.connectMapper.getConnectList(item);
	}

	@Override
	public int updateDeatils(ConnectVO item) {
		return this.connectMapper.updateDeatils(item);
	}


	@Override
	public int updateConnectBycompanyUser(ConnectVO item) {
		return this.connectMapper.updateConnectBycompanyUser(item);
	}

	@Override
	public int updateConnectBybankUser(ConnectVO item) {
		return this.connectMapper.updateConnectBybankUser(item);
	}
}
